package chapter7;
import static utility.Print.*;

/**
 * Exercise 4: (2) Prove that the base-class constructors are (a) always called
 * and (b) called before derived-class constructors.
 */

class OriginalClass {
	public OriginalClass() {
		print("Calling the original constructor");
	}
}

class ExtendedClass extends OriginalClass {

	public ExtendedClass() {
		print("Calling the inherited constructor");
    }
	
}

public class Exercise4 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		ExtendedClass c = new ExtendedClass();

	}

}
